﻿namespace Z2.Editor
{
	using System;
	using System.Collections.Generic;
	using System.Text;
	using vKapse.DDTool.Core;

	internal class FileTriggerGroup : TriggerGroup
	{

		private static readonly NewMapTrigger _newMap = new NewMapTrigger();
		private static readonly LoadMapTrigger _loadMap = new LoadMapTrigger();
		private static readonly LastMapsTrigger _lastMaps = new LastMapsTrigger();
		private static readonly SaveMapTrigger _saveMap = new SaveMapTrigger();
		private static readonly SaveMapAsTrigger _saveMapAs = new SaveMapAsTrigger();
		private static readonly ExitTrigger _exit = new ExitTrigger();

		public FileTriggerGroup()
			: base("Soubor", 0)
		{
			this.AddTrigger(_newMap);
			this.AddTrigger(SeparatorTrigger.Instance);
			this.AddTrigger(_loadMap);
			this.AddTrigger(_lastMaps);
			this.AddTrigger(SeparatorTrigger.Instance);
			this.AddTrigger(_saveMap);
			this.AddTrigger(_saveMapAs);
			this.AddTrigger(SeparatorTrigger.Instance);
			this.AddTrigger(_exit);
		}

		public static LastMapsTrigger LastMaps
		{
			get { return _lastMaps; }
		}

		public static ExitTrigger Exit
		{
			get { return _exit; }
		}

		public static SaveMapAsTrigger SaveMapAs
		{
			get { return _saveMapAs; }
		}

		public static SaveMapTrigger SaveMap
		{
			get { return _saveMap; }
		}

		public static LoadMapTrigger LoadMap
		{
			get { return _loadMap; }
		}

		public static NewMapTrigger NewMap
		{
			get { return _newMap; }
		}

	}
}
